package com.itheima.health.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.itheima.health.dao.MenuDao;
import com.itheima.health.pojo.Menu;
import com.itheima.health.pojo.User;
import com.itheima.health.service.MenuService;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;
import java.util.Map;

/**
 * @author ：乔博宇
 * @date ：Created in 2019/7/28 13:38
 * @description ：
 * @version: 1.0
 */

@Service
public class MenuServiceImpl implements MenuService {

 @Autowired
 private MenuDao menuDao;
 @Override
 public  List<Map<String ,Object >> findAll(String  user ) {

  return menuDao.findAll(user);
 }

 @Override
 public  List<Map<String , String >> findByPar( Integer id ) {

  return menuDao.findByPar(id);
 }
}
